mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Reorganize project file structure
This commit is contained in:
parent
c371244a4c
commit
fc93fad157
@ -4,8 +4,7 @@
|
||||
"repository": "https://github.com/user/project.git",
|
||||
"license": "BSD3",
|
||||
"source-directories": [
|
||||
".",
|
||||
"rules"
|
||||
"src"
|
||||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
|
@ -8,7 +8,7 @@ import Html exposing (Html, p, div, li, ul, pre, textarea, text)
|
||||
import Html.Attributes exposing (id, class)
|
||||
import Html.Events exposing (..)
|
||||
import Json.Decode as JD
|
||||
import Types
|
||||
import Lint.Types
|
||||
import Regex exposing (regex, escape)
|
||||
|
||||
|
||||
|
@ -5,8 +5,7 @@
|
||||
"license": "BSD3",
|
||||
"source-directories": [
|
||||
".",
|
||||
"..",
|
||||
"../rules"
|
||||
"../src"
|
||||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
|
@ -2,8 +2,8 @@ module Lint exposing (lint, visitExpression, doNothing)
|
||||
|
||||
import Ast
|
||||
import Ast.Expression exposing (Expression)
|
||||
import Types exposing (Error, LintImplementation, LintRule, Direction, Visitor)
|
||||
import Visitor exposing (transformStatementsIntoVisitors, expressionToVisitors)
|
||||
import Lint.Types exposing (Error, LintImplementation, LintRule, Direction, Visitor)
|
||||
import Lint.Visitor exposing (transformStatementsIntoVisitors, expressionToVisitors)
|
||||
|
||||
|
||||
doNothing : LintImplementation a context
|
@ -1,12 +1,10 @@
|
||||
module DefaultPatternPosition exposing (rule, PatternPosition(..))
|
||||
module Lint.Rules.DefaultPatternPosition exposing (rule, PatternPosition(..))
|
||||
|
||||
import Ast.Expression exposing (..)
|
||||
import Html.Attributes exposing (pattern)
|
||||
import Lint exposing (doNothing, lint)
|
||||
import Lint.Types exposing (Direction(..), Error, LintRule)
|
||||
import List.Extra exposing (findIndex)
|
||||
import Regex
|
||||
import Set exposing (Set)
|
||||
import Types exposing (Direction(..), Error, LintRule)
|
||||
|
||||
|
||||
type alias Context =
|
@ -1,8 +1,8 @@
|
||||
module NoConstantCondition exposing (rule)
|
||||
module Lint.Rules.NoConstantCondition exposing (rule)
|
||||
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Expression exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
import Set exposing (Set)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
module NoDebug exposing (rule)
|
||||
module Lint.Rules.NoDebug exposing (rule)
|
||||
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Expression exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
|
||||
|
||||
type alias Context =
|
@ -1,9 +1,9 @@
|
||||
module NoDuplicateImports exposing (rule)
|
||||
module Lint.Rules.NoDuplicateImports exposing (rule)
|
||||
|
||||
import Set exposing (Set)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Statement exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
import Set exposing (Set)
|
||||
|
||||
|
||||
type alias Context =
|
@ -1,8 +1,8 @@
|
||||
module NoExposingEverything exposing (rule)
|
||||
module Lint.Rules.NoExposingEverything exposing (rule)
|
||||
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Statement exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
|
||||
|
||||
type alias Context =
|
@ -1,8 +1,8 @@
|
||||
module NoImportingEverything exposing (rule)
|
||||
module Lint.Rules.NoImportingEverything exposing (rule)
|
||||
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Statement exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
|
||||
|
||||
type alias Context =
|
@ -1,8 +1,8 @@
|
||||
module NoNestedLet exposing (rule)
|
||||
module Lint.Rules.NoNestedLet exposing (rule)
|
||||
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Expression exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
|
||||
|
||||
type alias Context =
|
@ -1,8 +1,8 @@
|
||||
module NoUnannotatedFunction exposing (rule)
|
||||
module Lint.Rules.NoUnannotatedFunction exposing (rule)
|
||||
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Statement exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
import Set exposing (Set)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
module NoUnusedVariables exposing (rule)
|
||||
module Lint.Rules.NoUnusedVariables exposing (rule)
|
||||
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Expression exposing (..)
|
||||
import Ast.Statement exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
import Set exposing (Set)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
module NoUselessIf exposing (rule)
|
||||
module Lint.Rules.NoUselessIf exposing (rule)
|
||||
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Expression exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
|
||||
|
||||
type alias Context =
|
@ -1,10 +1,10 @@
|
||||
module NoUselessPatternMatching exposing (rule)
|
||||
module Lint.Rules.NoUselessPatternMatching exposing (rule)
|
||||
|
||||
import Lint exposing (lint, visitExpression, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Expression exposing (..)
|
||||
import Set exposing (Set)
|
||||
import Lint exposing (lint, visitExpression, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
import Regex
|
||||
import Set exposing (Set)
|
||||
|
||||
|
||||
type alias Context =
|
@ -1,9 +1,9 @@
|
||||
module NoWarningComments exposing (rule)
|
||||
module Lint.Rules.NoWarningComments exposing (rule)
|
||||
|
||||
import Ast.Statement exposing (..)
|
||||
import Lint exposing (doNothing, lint)
|
||||
import Lint.Types exposing (Direction(..), Error, LintRule)
|
||||
import Regex exposing (Regex)
|
||||
import Types exposing (Direction(..), Error, LintRule)
|
||||
|
||||
|
||||
type alias Context =
|
@ -1,8 +1,8 @@
|
||||
module SimplifyPiping exposing (rule)
|
||||
module Lint.Rules.SimplifyPiping exposing (rule)
|
||||
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Types exposing (LintRule, Error, Direction(..))
|
||||
import Ast.Expression exposing (..)
|
||||
import Lint exposing (lint, doNothing)
|
||||
import Lint.Types exposing (LintRule, Error, Direction(..))
|
||||
import Set exposing (Set)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Types exposing (..)
|
||||
module Lint.Types exposing (..)
|
||||
|
||||
import Ast.Expression exposing (..)
|
||||
import Ast.Statement exposing (..)
|
@ -1,8 +1,8 @@
|
||||
module Visitor exposing (transformStatementsIntoVisitors, expressionToVisitors)
|
||||
module Lint.Visitor exposing (transformStatementsIntoVisitors, expressionToVisitors)
|
||||
|
||||
import Ast.Expression exposing (..)
|
||||
import Ast.Statement exposing (..)
|
||||
import Types exposing (Direction(..), Visitor)
|
||||
import Lint.Types exposing (Direction(..), Visitor)
|
||||
|
||||
|
||||
createExitAndEnterWithChildren : (Direction nodeType -> Visitor context) -> nodeType -> List (Visitor context) -> List (Visitor context)
|
@ -2,8 +2,8 @@ port module DefaultPatternPositionTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import DefaultPatternPosition exposing (rule, PatternPosition(First, Last))
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.DefaultPatternPosition exposing (rule, PatternPosition(First, Last))
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : String -> Error
|
||||
|
@ -2,8 +2,8 @@ port module NoConstantConditionTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoConstantCondition exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoConstantCondition exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : Error
|
||||
|
@ -2,8 +2,8 @@ port module NoDebugTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoDebug exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoDebug exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : String -> Error
|
||||
|
@ -2,8 +2,8 @@ port module NoDuplicateImportsTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoDuplicateImports exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoDuplicateImports exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : String -> Error
|
||||
|
@ -2,8 +2,8 @@ port module NoImportingEverythingTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoImportingEverything exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoImportingEverything exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : String -> Error
|
||||
|
@ -2,8 +2,8 @@ port module NoNestedLetTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoNestedLet exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoNestedLet exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : Error
|
||||
|
@ -2,8 +2,8 @@ port module NoUnannotatedFunctionTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoUnannotatedFunction exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoUnannotatedFunction exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : String -> Error
|
||||
|
@ -2,8 +2,8 @@ port module NoUnusedVariablesTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoUnusedVariables exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoUnusedVariables exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : String -> Error
|
||||
|
@ -2,8 +2,8 @@ port module NoUselessIfTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoUselessIf exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoUselessIf exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : Error
|
||||
|
@ -2,8 +2,8 @@ port module NoUselessPatternMatchingTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoUselessPatternMatching exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoUselessPatternMatching exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
uselessError : Error
|
||||
|
@ -2,8 +2,8 @@ port module NoWarningCommentsTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import NoWarningComments exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.NoWarningComments exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : String -> Error
|
||||
|
@ -2,8 +2,8 @@ port module SimplifyPipingTest exposing (all)
|
||||
|
||||
import Expect
|
||||
import Test exposing (describe, test, Test)
|
||||
import SimplifyPiping exposing (rule)
|
||||
import Types exposing (Error)
|
||||
import Lint.Rules.SimplifyPiping exposing (rule)
|
||||
import Lint.Types exposing (Error)
|
||||
|
||||
|
||||
error : String -> String -> Error
|
||||
|
@ -5,8 +5,7 @@
|
||||
"license": "BSD3",
|
||||
"source-directories": [
|
||||
".",
|
||||
"..",
|
||||
"../rules"
|
||||
"../src"
|
||||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
|
Loading…
Reference in New Issue
Block a user